'''
反转  reverse()---print(shuzi[::-1])
排序: sort()----冒泡排序---数据类型需要能够进行比较大小
'''



shuzi=[2,5,3,6,8,9,4,77,44]
shuzi.reverse()
shuzi.sort()
print(shuzi)

names=["狗剩","钢蛋","粪蛋","招弟"]
names.reverse()
print(names)

#从大到小排序写法---先排序,再反转
shuzi.sort(reverse=True)
print(shuzi)
